// dialogs - 对话框

"nodejs";
const dialogs = require('dialogs');
async function alert() {
    await dialogs.setDefaultDialogType('overlay')
  await dialogs.showAlertDialog("This is an alert dialog.",{type:'overlay'});
  await dialogs.showAlertDialog("Summary", { content: "Some description" });
  await dialogs.showInputDialog("输入框标题", "输入框默认文本");
  console.log(await dialogs.showConfirmDialog("Are you sure?", { positive: "Yes", negative: "No"}));

  const i = await dialogs.showSelectDialog("Select an item", ["item1", "item2", "item3"]);
  console.log(`selected item: ${i}`);
}
alert();
